﻿using Rsd.Dudu.Core; 

namespace Rsd.Faith.Core
{
    /// <summary>
    /// 
    /// </summary>
    public interface IApiTimerService : IService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="loginUrl"></param>
        void DoRequestApi(string loginUrl);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="host"></param>
        /// <param name="list"></param>
        void StartTimer(string host, ApiTimerModel[] list);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="host"></param>
        /// <param name="group"></param>
        void StartTimer(string host, string group);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="path"></param>
        /// <param name="text"></param>
        void NewTimer(string group,string path,string text);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="enable"></param>
        /// <returns></returns>
        ApiTimerModel[] GetApiList(string group, bool enable);
    }
}